<template>
	<view>
		<view>
			<web-view :src="url" @message="getMessage"></web-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				url: ''
			}
		},
		async onLoad(options) {
			await this.getinfo()
		},
		methods: {
			getinfo(){
				return vk.callFunction({
				  url: 'client/gsxy/globalDataCacheKye/getkye.getgsxyh5',
				  title:'请求中...',
				  data:{
					  hcid:'gsxyh5'
				  }
				}).then((data) => {
					this.url = data.info.gsxyh5
				}).catch((err) => {
				  
				});
			},
			getMessage(event) {
				uni.showModal({
					content: JSON.stringify(event.detail),
					showCancel: false
				});
			}
		}
	}
</script>

<style>

</style>
